gopal: Change data types to fix mingw-gcc error (bug?).
authoroliskoli <oliskoli>
Thu, 18 Sep 2008 22:08:51 +0000 (22:08 +0000)
committeroliskoli <oliskoli>
Thu, 18 Sep 2008 22:08:51 +0000 (22:08 +0000)
gopal.c

diff --git a/gopal.c b/gopal.c
index 2cdd43a696ddf078afa166e63d9d9d3f50888d39..92d46e05d8a6842f4a9ebac4ab09052ee0d24390 100644 (file)
--- a/gopal.c
+++ b/gopal.c
@@ -325,7 +325,7 @@ static void
 gopal_write_waypt(const waypoint *wpt)
 {
        char tbuffer[64];
-       unsigned long long timestamp;
+       unsigned long timestamp;
        int fix=fix_unknown;
        //TICK;    TIME;   LONG;     LAT;       HEIGHT; SPEED;  UN; HDOP;     SAT
        //3801444, 080558, 2.944362, 43.262117, 295.28, 0.12964, 2, 2.900000, 3 
@@ -339,8 +339,8 @@ gopal_write_waypt(const waypoint *wpt)
                }
        }
        //MSVC handles time_t as int64, gcc and mac only int32, so convert it: 
-       timestamp=(unsigned long long)wpt->creation_time;
-       gbfprintf(fout, "%llu, %s, %lf, %lf, %5.1lf, %8.5lf, %d, %lf, %d\n",timestamp,tbuffer,  wpt->longitude, wpt->latitude,wpt->altitude,
+       timestamp=(unsigned long)wpt->creation_time;
+       gbfprintf(fout, "%lu, %s, %lf, %lf, %5.1lf, %8.5lf, %d, %lf, %d\n",timestamp,tbuffer,  wpt->longitude, wpt->latitude,wpt->altitude,
        wpt->speed,fix,wpt->hdop,wpt->sat);
 }